cmake_minimum_required(VERSION 3.28)
project(statusServer CXX)
set(CXX_STANDARD_REQUIRED 14)

aux_source_directory(./rpc_src  rpc_src_file)
aux_source_directory(./src  src_file)

include_directories(./include)
include_directories(./rpc_src)

# 查找库
find_package(Threads REQUIRED)
find_package(Protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED)


add_executable(statusServer ${rpc_src_file} ${src_file})

# 链接库
target_link_libraries(statusServer hiredis)
target_link_libraries(statusServer gRPC::grpc++ protobuf::libprotobuf gRPC::grpc++_reflection )




